package cn.tedu.hw_two;

public class Test7 {
public static void main(String[] args) {
	Dao2 d2=new Dao1Impl();
	d2.he();
	d2.la();
	Dao1.eat2();
	Dao1 d1=new Dao1Impl();
	d1.eat();
	B5 b=new Dao1Impl();
	b.ha();
}
}
interface Dao1{
	public default void eat() {
	}
	public static  void eat2() {
		System.out.println(100);
	}
}
interface Dao3{
	void la();
}
interface Dao2 extends Dao1,Dao3{
	void he();
}
class A5{
	public void sa() {
		System.out.println(4);
	}
}
abstract class B5{
	abstract public void ha();
}
class Dao1Impl extends B5 implements Dao1,Dao2{
	
	@Override
	public void he() {
		System.out.println(2);
	}
	@Override
	public void la() {
		System.out.println(3);
	}
	@Override
	public void ha() {
		System.out.println(4);
	}
}